.class public Lcn/cheln/explorer/ds/DatabaseHelper;
.super Landroid/database/sqlite/SQLiteOpenHelper;


# static fields
.field private static a:Ljava/lang/String;

.field private static b:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    sget-object v0, Lcn/cheln/explorer/ds/database/SQLManager;->e:Ljava/lang/String;

    sput-object v0, Lcn/cheln/explorer/ds/DatabaseHelper;->a:Ljava/lang/String;

    const/4 v0, 0x1

    sput v0, Lcn/cheln/explorer/ds/DatabaseHelper;->b:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    sget-object v0, Lcn/cheln/explorer/ds/DatabaseHelper;->a:Ljava/lang/String;

    const/4 v1, 0x0

    sget v2, Lcn/cheln/explorer/ds/DatabaseHelper;->b:I

    invoke-direct {p0, p1, v0, v1, v2}, Landroid/database/sqlite/SQLiteOpenHelper;-><init>(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)V

    return-void
.end method


# virtual methods
.method public onCreate(Landroid/database/sqlite/SQLiteDatabase;)V
    .locals 1

    sget-object v0, Lcn/cheln/explorer/ds/database/SQLManager;->d:Ljava/lang/String;

    invoke-static {v0}, Lcn/cheln/explorer/ds/database/SQLManager;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    sget-object v0, Lcn/cheln/explorer/ds/database/SQLManager;->d:Ljava/lang/String;

    invoke-static {v0}, Lcn/cheln/explorer/ds/database/SQLManager;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    sget-object v0, Lcn/cheln/explorer/ds/database/SQLManager;->b:Ljava/lang/String;

    invoke-static {v0}, Lcn/cheln/explorer/ds/database/SQLManager;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    sget-object v0, Lcn/cheln/explorer/ds/database/SQLManager;->b:Ljava/lang/String;

    invoke-static {v0}, Lcn/cheln/explorer/ds/database/SQLManager;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    sget-object v0, Lcn/cheln/explorer/ds/database/SQLManager;->c:Ljava/lang/String;

    invoke-static {v0}, Lcn/cheln/explorer/ds/database/SQLManager;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    sget-object v0, Lcn/cheln/explorer/ds/database/SQLManager;->c:Ljava/lang/String;

    invoke-static {v0}, Lcn/cheln/explorer/ds/database/SQLManager;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    return-void
.end method

.method public onOpen(Landroid/database/sqlite/SQLiteDatabase;)V
    .locals 0

    invoke-super {p0, p1}, Landroid/database/sqlite/SQLiteOpenHelper;->onOpen(Landroid/database/sqlite/SQLiteDatabase;)V

    return-void
.end method

.method public onUpgrade(Landroid/database/sqlite/SQLiteDatabase;II)V
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "DROP TABLE IF EXISTS "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget-object v1, Lcn/cheln/explorer/ds/DatabaseHelper;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    invoke-virtual {p0, p1}, Lcn/cheln/explorer/ds/DatabaseHelper;->onCreate(Landroid/database/sqlite/SQLiteDatabase;)V

    return-void
.end method
